

import { Result, Button } from 'antd';
import React from 'react';
import { useNavigate } from 'react-router-dom';

const NoMatch = () => {
  const navigate = useNavigate();
    return (
      <Result
      status={403}
      title="403"
      subTitle="对不起，您没有查看该页面的权限，如需访问，请联系管理员开通权限"
      extra={
        <Button type="primary" onClick={() => navigate('/home')}>
          返回首页
        </Button>
      }
    />
  )
};

export default NoMatch;
